package com.learning_paicoding.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.util.UUID;

/**
 * @Author hph
 * @Date 2025/10/12 21:08
 **/
@Data
public class UserRegisterDTO {

    @NotBlank(message = "用户名不能为空")
    @TableField("user_name")
    private String userName;

    @NotBlank(message = "手机号不能为空")
    @TableField("telephone")
    private String telephone;

    @NotBlank(message = "密码不能为空")
    @TableField("password")
    private String password;

    // 密码盐值
    @JsonIgnore
    private String salt = UUID.randomUUID().toString().replaceAll("-", "");


}
